﻿using System.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marbles.Core.Web.CMS
{
    public class DataSourceContentManagerConfiguration : ConfigurationSection
    {

        public static DataSourceContentManager GetConfig()
        {
            return System.Configuration.ConfigurationManager.GetSection("DataSourceContentManager") as DataSourceContentManager;
        } 

        [ConfigurationProperty("SelectPageCommand", DefaultValue = "", IsRequired = false)]
        public string SelectPageCommand
        {
            get { return this["SelectPageCommand"] as string;}
        }

        [ConfigurationProperty("SelectContentCommand", DefaultValue = "", IsRequired = false)]
        public string SelectContentCommand
        {
            get { return this["SelectContentCommand"] as string;}
        }

        [ConfigurationProperty("UpdateContentCommand", DefaultValue = "", IsRequired = false)]
        public string UpdateContentCommand
        {
            get { return this["UpdateContentCommand"] as string;}
        }

        [ConfigurationProperty("InsertContentCommand", DefaultValue = "", IsRequired = false)]
        public string InsertContentCommand
        {
            get { return this["InsertContentCommand"] as string;}
        }

        [ConfigurationProperty("DeleteContentCommand", DefaultValue = "", IsRequired = false)]
        public string DeleteContentCommand
        {
            get { return this["DeleteContentCommand"] as string;}
        }

        [ConfigurationProperty("UpdatePageCommand", DefaultValue = "", IsRequired = false)]
        public string UpdatePageCommand
        {
            get { return this["UpdatePageCommand"] as string;}
        }

        [ConfigurationProperty("InsertPageCommand", DefaultValue = "", IsRequired = false)]
        public string InsertPageCommand
        {
            get { return this["InsertPageCommand"] as string;}
        }

        [ConfigurationProperty("DeletePageCommand", DefaultValue = "", IsRequired = false)]
        public string DeletePageCommand
        {
            get { return this["DeletePageCommand"] as string; }
        }

    }
}
